import { NestFactory } from '@nestjs/core';
import { App } from 'App';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
async function bootstrap() {
  const app = await NestFactory.create(App);
  const options = new DocumentBuilder()
    .setTitle('nest')
    .setDescription('The nest api description')
    .setVersion('1.0.0')
    //.addTag('cats')
    .addBearerAuth()
    .build();
  const document = SwaggerModule.createDocument(app, options);
  SwaggerModule.setup('swagger', app, document);
  await app.listen(3000);
}
bootstrap();
  


